package com.jia.coupon.entity;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 优惠券领取历史记录(CouponHistory)表实体类
 *
 * @author makejava
 * @since 2025-07-28 17:36:20
 */
@Getter
@Setter
@SuppressWarnings("serial")
public class CouponHistory extends Model<CouponHistory> {
    //id
    private Long id;
    //优惠券id
    private Long couponId;
    //会员id
    private Long memberId;
    //会员名字
    private String memberNickName;
    //获取方式[0->后台赠送；1->主动领取]
    private Integer getType;
    //创建时间
    private Date createTime;
    //使用状态[0->未使用；1->已使用；2->已过期]
    private Integer useType;
    //使用时间
    private Date useTime;
    //订单id
    private Long orderId;
    //订单号
    private Long orderSn;

}

